package com.adams.common;

import com.adams.utils.SystemConfig;

/**
 * 
 * 
 * File Name : Constants.java
 * 
 * @Description : 常量类
 * @author 902990封文进
 */
public class Constants {

    public static final int ALL_PAGE_SIZE = -1; // 获取所有记录数

    public static final String SUPER_USER_NAME = "admin";

    public static final String RIGHT_CODE_ADVANCED_SEARCH_MANAGE = "sys-115";

    public static final String NO_RIGHT_ACCESS = "没有权限访问";

    public static final String LOGIN_ERROR = "登录失败，请重新登录！";

    public static final String NO_PERMIT_DELETE_ME = "对不起，不允许删除自己！";

    public static final String LOGIN_FAIL_USER_NULL = "用户名不能为空！";

    public static final String LOGIN_FAIL_PASSWD_NULL = "密码不能为空！";

    public static final String LOGIN_FAIL_PASSWD_ERROR = "用户名不存在或密码错误！";

    public static final String LOGIN_FAIL_ROLE_NULL = "用户没有权限！";

    public static final String LOGIN_FAIL_VALIDATECODE_NULL = "验证码不能为空！";

    public static final String LOGIN_FAIL_VALIDATECODE_ERROR = "验证码错误！";

    public static final String OVER_TIME = "你的访问已超时，请退出重新登录";

    public static final String USER_NAME_HAS_BLANK = "用户名不允许存在空格";

    public static final String MUST_SELECT_RIGHT = "必须选择权限";

    public static final String OLD_PASSWORD_ERROR = "输入的旧密码不对";

    public static final String NEW_PASSWORD_ERROR = "输入的新密码不一致";

    public static final String PASSWORD_HAS_BLANK = "密码不允许存在空格";

    public static final String PASSWORD_HAS_CHINESE = "密码不允许存在中文字符";

    public static final String EXIST_USER_NAME = "对不起，已经存在相同的用户名!";

    public static final String EXIST_PARAMETER_NAME = "对不起，已经存在相同的参数名和类型";

    public static final String EXIST_ROLE_NAME = "对不起，已经存在相同的角色名";

    public static final String TEMPALTE_NAME_ERROR = "文件包名不能包含空格";

    public static final String EPG_EXCEPTION = "epg.exception";

    public static final String SYN_SUCCESS = "同步成功";

    public static final String ADD_SUCCESS = "添加成功";

    public static final String UPDATE_SUCCESS = "修改成功";

    public static final String DELETE_SUCCESS = "删除成功";

    public static final String IMPORT_SUCCESS = "上传成功";

    public static final String RECOMMEND_OR_CANCEL_SUCCESS = "推荐/取消成功";

    public static final String SYSTEM_EXCEPTION = "系统繁忙，请稍后再试";

    public static final String CHANNEL_NAME_EXIST_EXCEPTION = "系统繁忙，请稍后再试";

    // 广告图片
    public static final String adDir = (String) SystemConfig.getInstance().getProperty("ad.dir");// 物理路径

    public static final String adUrl = (String) SystemConfig.getInstance().getProperty("ad.url");// 虚拟路径

    public static final String picSize = (String) SystemConfig.getInstance().getProperty("pic.size");// 图片大小

    public static final String musicSize = (String) SystemConfig.getInstance().getProperty("music.size");// 上传音乐大小设置

    // 验证码标识
    public static final String CODE = "captchacode";

}
